package com.csk.zsk.compents.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.csk.zsk.commons.dao.impl.BaseHibernateDao;
import com.csk.zsk.compents.dao.PersoncollectionDao;
import com.csk.zsk.compents.entity.Personcollection;

@Repository
public class PersoncollectionDaoImpl extends BaseHibernateDao<Personcollection, String> implements PersoncollectionDao {

	@Override
	public List<Personcollection> searchPersoncollection(String title, String userid) {
		return find("from Personcollection p where p.title like ? and p.userid = ?", "%" + title + "%", userid);
	}

}
